package com.synergy.stockflow.production.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.production.create.MaterialRequisitionVo;
import com.synergy.stockflow.production.entity.MaterialRequisition;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaterialRequisitionService extends IService<MaterialRequisition>{

    List<MaterialRequisitionVo> selectAll(Page<MaterialRequisitionVo> objectPage,@Param("requisitionCode")String requisitionCode,
                                          @Param("requisitionName")String requisitionName,
                                          @Param("requiredTime")String requiredTime,
                                          @Param("status")Integer status);

    MaterialRequisitionVo selectByCode(String requisitionCode);

    int updateListStatus(String requisitionId);

    /**
     * 统计当月领料单数量
     * @return
     */
    int countCurrentMonthPlans();

}
